﻿<UserControl x:Class="ZWaveApi.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:Controls="clr-namespace:ZWaveApi.Controls"
    mc:Ignorable="d"
    d:DesignHeight="590" d:DesignWidth="895" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk">
    <UserControl.Resources>
        <DataTemplate x:Key="TreeViewItemZWaveNode">
            <TextBlock Text="{Binding GenericType}" Tag="{Binding}" />
        </DataTemplate>
        <DataTemplate x:Key="TreeViewItemCommandClass">
            <TextBlock Text="{Binding CommandClass}" Tag="{Binding}" />
        </DataTemplate>
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot" Width="829">
        <sdk:Label Height="28" HorizontalAlignment="Left" Margin="12,12,0,0" Name="lblStatusZWaveApiServer"  VerticalAlignment="Top" Width="144" Content="ZWaveApi server Status" />
        <TextBlock Height="23" HorizontalAlignment="Right" Margin="0,12,202,0" Name="txtStatusZWaveApiServer" Text="" VerticalAlignment="Top" Width="446" />
        <Button Content="Start ZWaveApi Server" Height="23" HorizontalAlignment="Left" Margin="649,12,0,0" Name="btnStartZWaveApiServer" VerticalAlignment="Top" Width="168" Click="btnStartZWaveApiServer_Click" />
        <Button Content="Stop ZWaveApi Server" Height="23" Margin="0,63,12,0" Name="btnStopZWaveApiServer" VerticalAlignment="Top" Click="btnStopZWaveApiServer_Click" HorizontalAlignment="Right" Width="168" />
        <Button Content="Get all the nodes" Height="23" HorizontalAlignment="Right" Margin="0,63,649,0" Name="btnGetAllNodes" VerticalAlignment="Top" Width="168" Click="btnGetAllNodes_Click" />
        <Button Content="ZWave Info" Height="23" HorizontalAlignment="Left" Margin="330,63,0,0" Name="btnZWaveInfo" VerticalAlignment="Top" Width="168" Click="btnZWaveInfo_Click" />
        <sdk:TreeView Height="478" HorizontalAlignment="Left" Margin="12,100,0,0" Name="trvZWaveNodes" VerticalAlignment="Top" Width="168" SelectedItemChanged="trvZWaveNodes_SelectedItemChanged" />
        <Controls:ctlSwitchBinary x:Name="ctlSwitchBinary" Visibility="Collapsed" Margin="181,12,16,100" />
        <Controls:ctlZWaveInfo x:Name="ctlZWaveInfo" Visibility="Collapsed" Margin="185,100,12,12" />
        <TextBox Height="226" HorizontalAlignment="Left" Margin="190,351,0,0" Name="txtLog" VerticalAlignment="Top" Width="627" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" />
    </Grid>
</UserControl>
